package com.easy.platform.manage.service.impl;

import com.easy.common.util.Result;
import com.easy.platform.manage.mapper.PlatformMapper;
import com.easy.platform.manage.service.PlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-28 18:31
 **/
@Service
public class PlatformServiceImpl implements PlatformService {
    @Autowired
    PlatformMapper platformMapper;


    @Override
    public Result getPlatformInfo(String name) {
        return Result.success(platformMapper.findPlatformInfo(name));
    }

    @Override
    public Result findPlatformInfoByUserId(Integer userId) {
        return Result.success(platformMapper.findPlatformInfoByUserId(userId));
    }
}
